package com.swl.service.impl;

import com.swl.dao.CourseDao;
import com.swl.pojo.Course;
import com.swl.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseServiceImpl implements CourseService {
    @Autowired
    private CourseDao courseDao;
    @Override
    public int insertCourse(Course course) {
        return courseDao.insertCourse(course);
    }

    @Override
    public List<Course> selectAll() {
        return courseDao.selectAll();
    }

    @Override
    public List<Course> selectCourseBySchoolId(int schoolId) {
        return courseDao.selectCourseBySchoolId(schoolId);
    }
}
